Received: from zeus ([139.86.128.2]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id GAA13302 for <blitz-list@helsinki.fi>; Tue, 19 Jul 1994 06:21:11 +0300
Received: from helios.usq.edu.au (helios) by zeus with SMTP id AA12417
(5.65c/IDA-1.4.4 for <blitz-list@helsinki.fi>); Tue, 19 Jul 1994 13:18:06 -1000
Message-Id: <199407192318.AA12417@zeus>
Received: by helios.usq.edu.au
From: tom duncan <duncan@zeus.usq.edu.au>
Subject: Screen Flash Problem
To: blitz-list@helsinki.fi
Date: Tue, 19 Jul 1994 13:14:25 +1000 (EST)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Status:
Status: RO
OK guys,
I know this must be easy but how do I stop the screen flashing
when I load in an image onto another hidden screen.
I have tried moving the screen down out of the way but the flash still
happens.
Here is the code.
WBStartup
NoCli
S.b=2
For a=1 To 20
f$="CDX:Temp/F/1.lres"
Gosub Action19
ShowScreen S : VWait 100
f$="CDX:Temp/F/2.mres"
Gosub Action19 : VWait 100
ShowScreen S
Next
End
Action19:
; Load Screen
S=5-S
; load or initialise a screen into S
If Len(f$)>0 AND Exists(f$)
; Load image
ILBMInfo f$
w.w=ILBMWidth
h.w=ILBMHeight
d.w=ILBMDepth
Id.l=ILBMViewMode
Free Window S : Free Screen S : Free BitMap S
BitMap S,w,h,d
Screen S,0,0,w,h,d,Id,"",1,2,S
PalRGB S,0,0,0,0
HideScreen S
; Now Open Window onto Screen
Window S,0,0,w,h,$0900,"",1,2,S
LoadScreen S,f$,S
Use Palette S
OK.b=True
Else
r=Request("ERROR","Cant open file "+f$,"BYE") : End